package com.aye.haze_detection;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

//静态注册接收者
public class StaticReceiver extends BroadcastReceiver {
    private static final String TAG = StaticReceiver.class.getSimpleName();
    private String CityId;
    @Override
    public void onReceive(Context context, Intent intent) {
        CityId = intent.getStringExtra("cityid");
        Log.d(TAG, "StaticReceiver onReceive: "+"广播接收者"+CityId);

    }

    public String getCityId() {
        return CityId;
    }
}
